<?php

namespace app\model\iot_model;

use app\BaseModel;
use app\common\Message;
use think\model\relation\HasMany;

class IotGrouping extends BaseModel
{
    use Message;
    protected $name = 'iot_grouping';

    /**
     * 功能室
     * @return HasMany
     */
    public function room(): HasMany
    {
        return $this->hasMany(IotRoom::class, 'type_id');
    }

}